package nan.nanfang.test01;

public class jiaoWuTeacher {
    private String name ;
    private String shcool;

    public jiaoWuTeacher(){
        super();
    }
    public jiaoWuTeacher(String name, String shcool) {
        this.name = name;
        this.shcool = shcool;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShcool() {
        return shcool;
    }

    public void setShcool(String shcool) {
        this.shcool = shcool;
    }

    public void anPai(javaTeacher javaTeacher){
        System.out.println("教务老师职责 -- 在指定的地点");
        System.out.println("教务老师职责 -- 在指定的时间");
        javaTeacher.teach();
    }

    public void anPai(jDotNetTeacher jDotNetTeacher){
        System.out.println("教务老师职责 -- 在指定的地点");
        System.out.println("教务老师职责 -- 在指定的时间");
        jDotNetTeacher.show();
    }
    public static void main(String[] args) {
        javaTeacher zs = new javaTeacher("张三","nf");
        jiaoWuTeacher jwt = new jiaoWuTeacher("中老师","中");
        jwt.anPai(zs);
    }
}
